package ch.hearc.detectionpresence;

import java.util.LinkedList;
import java.util.List;

import javax.swing.DefaultListModel;

public class DetectedItemsListModel extends DefaultListModel {

	private List<String> objectsList;

	public DetectedItemsListModel() {
		this.objectsList = new LinkedList<String>();
	}

	@Override
	public int getSize() {
		return this.objectsList.size();
	}

	@Override
	public Object getElementAt(int index) {
		return this.objectsList.get(index);
	}

	public List<String> getObjectsList() {
		return objectsList;
	}

	public void setObjectsList(List<String> objectsList) {
		this.objectsList = objectsList;
	}

}
